<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>问题管理</title>
    <hdjs/>
    <bootstrap/>
    <style type="text/css">
        .plus_minus{
            width: 20px;
        }
    </style>
    <!-- <css file="__CONTROL_TPL__/css/css.css"/> -->
    <js file="__CONTROL_TPL__/js/ajax_is_show.js"/>
</head>
<body>
<div class="wrap">
    <table class="table2">
        <thead>
            <tr pid=0>
                <td width="30">ID</td>
                <td>问题编号</td>
                <td>问题</td>
                <td>所在商品位置（id）</td>
                <td>提问人</td>
                <td>解决</td>
                <td>显示</td>
                <td width="200">操作</td>
            </tr>
        </thead>
        <tbody>
            <foreach from="$askData" key="$k" value="$v">
                <tr >
                    <td width="30"><a href="javascript:;" class="btn btn-primary btn-xs plus_minus">{$v.askid}</a></td>
                    <td>{$v.asknumber}</td>
                    <td>{$v.askcontent}</td>
                    <td>{$v.goodsname|hd_substr:10}{{$v.goodsid}}</td>
                    <td>{$v.nickname}</td>
                    <if value="$v['is_answer'] eq 1">
                    <td><span class="glyphicon glyphicon-ok"></span></td>
                    <else>
                    <td><span class="glyphicon glyphicon-remove"></span></td>
                    </if>
                    <if value="$v['is_show'] eq 1">
                    <td id="is_show"><a href="javascript:;" value="{$v['is_show']}" askid="{$v['askid']}" class="is_show"><span class="glyphicon glyphicon-ok"></span></a></td>
                    <else>
                    <td id="is_show"><a href="javascript:;" value="{$v['is_show']}" askid="{$v['askid']}" class="is_show"><span class="glyphicon glyphicon-remove"></span></a></td>
                    </if>
                    
                    <td width="200">
                    <a href="{|U:'Answer/info',array('askid'=>$v['askid'])}" class="btn btn-info btn-xs">查看详情</a>
                        <a href="{|U:'Answer/answer',array('askid'=>$v['askid'])}" class="btn btn-primary btn-xs">回复</a>
                       
                        <a href="javascript:;" class="btn btn-danger btn-xs" onclick="if(confirm('确定删除吗？')) location.href='{|U:'Answer/del',array('askid'=>$v['askid'])}'">删除</a>
                    </td>
                </tr>
            </foreach>
        </tbody>
    </table>
    <div class="page_hdjob">
        
    </div>
</div>

</body>
</html>


